package app.config;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Sqlite3Impl implements ConnectionDao {

	@Override
	public Connection getConn() {
		try {
			Class.forName("org.sqlite.JDBC");
			try {
				return DriverManager.getConnection("jdbc:sqlite:love.db");
			} catch (SQLException e) {
				e.printStackTrace();
				return null;
			}
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
			return null;
		}
	}

}
